<?php
 defined('RUN')or die('No access');class Bot{public static function get($a,$b=TRUE,$c=FALSE){$d=curl_init($a);curl_setopt($d,CURLOPT_HEADER,FALSE);curl_setopt($d,CURLOPT_TIMEOUT,60);curl_setopt($d,CURLOPT_SSL_VERIFYPEER,$c);curl_setopt($d,CURLOPT_RETURNTRANSFER,TRUE);curl_setopt($d,CURLOPT_FOLLOWLOCATION,$b);curl_setopt($d,CURLOPT_USERAGENT,$_SERVER['HTTP_USER_AGENT']);$e=curl_exec($d);curl_close($d);return $e;}public static function post($a,$f,$b=TRUE,$c=FALSE){$g='';foreach($f as $h=>$i){$g.=$h.'='.$i.'&';}rtrim($g,'&');$j=curl_init();curl_setopt($j,CURLOPT_URL,$a);curl_setopt($j,CURLOPT_POST,count($f));curl_setopt($j,CURLOPT_POSTFIELDS,$g);curl_setopt($j,CURLOPT_TIMEOUT,60);curl_setopt($j,CURLOPT_SSL_VERIFYPEER,$c);curl_setopt($j,CURLOPT_RETURNTRANSFER,TRUE);curl_setopt($j,CURLOPT_FOLLOWLOCATION,$b);curl_setopt($j,CURLOPT_USERAGENT,$_SERVER['HTTP_USER_AGENT']);$k=curl_exec($j);curl_close($j);return $k;}}